package com.example.service;

import com.example.mapper.AccountDao;
import io.seata.core.context.RootContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class AccountServiceImpl implements AccountService{
    @Autowired
    private AccountDao accountDao;
    @Override
    public int modifiedAccount(Long userId, BigDecimal used) {
        String XID = RootContext.getXID();
        System.out.println(XID);
        return accountDao.modifiedAccount(userId,used);
    }
}
